************
INTRODUCTION
************

This file describes how to set up and use the perl wrapper code with Melissa DATA's Phone Object.


*************
PREREQUISITES
*************

To make use of the Global Phone / Phone Object perl wrapper you will need:

* An installation of a Perl. Wrapper tested with Perl 5.10. 

* The Melissa DATA Phone Object library and data files installed.
  These files are installed automatically if you run setup.exe. By default, the Phone Object 
  Library (mdPhone.dll) is installed in:
	C:\Program Files\Melissa DATA\DQT\PhoneObj\dll_32bit

* 64bit version available in C:\Program Files\Melissa DATA\DQT\PhoneObj\dll_64bit
  
and the Phone Object data files in:
	C:\Program Files\Melissa DATA\DQT\Data

You will need to know the location of these items in order to install and run the Perl wrapper.


**********************
Wrapper compatibility
**********************

If the provided pre-compiled wrappers are not compatible with your environment, the necessary files for compilation can be found in the 'interfaces' folder of the object's main directory.


***********
Demo Mode
***********

Please contact your sales representative to unlock the full functionality of Phone Object.  In Demo 
mode, Phone Object will only validate phone numbers in Nevada. Please call 1-800-MELISSA ext. 3 for
more information.


*************
Installation
*************

Copy the entire folder that contains this readme.txt into a local directory on your computer.


*****
Setup
*****

You will need to allow mdPhonePerlWrapper.dll to find mdPhone.dll. You can do this by:

	1. Adding the directory containing mdPhone to your PATH environment variable. 
	   ex: set PATH=%PATH%;C:\Program Files\Melissa DATA\DQT\PhoneObj\dll_32bit
* 64bit version available in C:\Program Files\Melissa DATA\DQT\PhoneObj\dll_64bit

	or

	2. Copy mdPhone.dll into the directory with mdPhonePerlWrapper.dll.



**************************
Setting up the Sample Code
**************************

Open PhoneSample.pl for editing. You can set the a license string that you receive from your Melissa Data
sales representative:
	my $LICENSE = "demo";

and also the path to the Phone Object Data Files:
	my $FILELOC = "C:\\Program Files\\Melissa DATA\\DQT\\Data";


***********************
Running the Sample Code
***********************

Navigate to the directory containing the perl wrapper using command line and type:
	'perl PhoneSample.pl'

*******
Updates
*******

The files generated/included in this wrapper do not need to be changed for DQ Suite updates unless there is a method signature change in the object. If a new method is added, you will need to rebuild the wrapper to use the new method. 


****
Note
****

Here are some general solutions if you run into problems:

Q. I get an error saying "can't find mdPhone.dll."
A. This means that mdPhonePerlWrapper.dll cannot link to mdPhone.dll. Please follow the steps in
the Setup section above.

Q. I get an error saying "can't find perl510.dll."
A. The current mdPhonePerlWrapper.dll was compiled using Perl 5.10. You are probably using another version of
perl. You will need another version of mdPhonePerlWrapper.dll that uses the version of perl on your system. 
Please look in the "Source" folder and read the readme for instructions. 


COPYRIGHT NOTICE

(C) 2014 Melissa Data Corporation. All rights reserved.
